import time
from selenium import webdriver
from selenium.webdriver.common.by import By

# 1.打开浏览器
webdriver_path = "H:\chromedriver64\msedgedriver.exe"

# 启动 Edge 浏览器
driver = webdriver.Edge(executable_path=webdriver_path)
# driver = webdriver.Chrome() #创建浏览器对象
# 输入访问地址
driver.get("http://121.43.169.97:8848/pageA.html")

# # 通过超链接定位页面元素
# # 定位元素并输入内容
driver.find_element(By.LINK_TEXT,"打开百度").click()
# 放大浏览器
driver.maximize_window()
